package demo.standard;

public class ConcreteColleagueB extends AbstractColleague {

    public ConcreteColleagueB(AbstractMediator mediator) {
        super(mediator);
    }

    @Override
    public void exec() {
        mediator.communicate(this, "同事B触发了处理");
    }

    public void doSomethingForA() {
        System.out.println("同事B为A做了工作");
    }
}
